import { http } from './base'

/**
 * 微信第三方登录
 */
export async function wxLogin({ code }) {
  const res = await http().post('/authentication', {
    type: 'wechat',
    code,
  })
  return res
}
